/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tofc.elements;

import tofc.chart.BaseXYChart;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author p476733
 */
public class XYPanel extends BasePanel {

    private XAxis xAxis;
    private YAxis yAxis;
    private YAxisRight yAxisRight;
    private XLegend xLegend;
    private YLegend yLegend;


    public XYPanel() {
        this.elements = new ArrayList();
    }

    public List getElements() {
        return this.elements;
    }

    public void AddElement(BaseXYChart chart) {
        elements.add(chart);
    }

    /**
     * @return the xAxis
     */
    public XAxis getXAxis() {
        return xAxis;
    }

    /**
     * @param axis the xAxis to set
     */
    public void setXAxis(XAxis axis) {
        xAxis = axis;
    }

    /**
     * @return the yAxis
     */
    public YAxis getYAxis() {
        return yAxis;
    }

    /**
     * @param axis the yAxis to set
     */
    public void setYAxis(YAxis axis) {
        yAxis = axis;
    }

    public YAxisRight getYAxisRight() {
        return yAxisRight;
    }

    public void setYAxisRight(YAxisRight yAxisRight) {
        this.yAxisRight = yAxisRight;
    }

    /**
     * @return the xLegend
     */
    public XLegend getXLegend() {
        return xLegend;
    }

    /**
     * @param legend the xLegend to set
     */
    public void setXLegend(XLegend legend) {
        xLegend = legend;
    }

    /**
     * @return the yLegend
     */
    public YLegend getYLegend() {
        return yLegend;
    }

    /**
     * @param legend the yLegend to set
     */
    public void setYLegend(YLegend legend) {
        yLegend = legend;
    }
}
